import { baseUrl, doRequestPost, doRequestDel, doRequestPut, doRequestGet } from '@/utils/request'

export function wordListSimple(query) {
  return doRequestPost(baseUrl + 'cms/customvocabulary/listSimpleName/' + query.type + '?time=' + (+new Date()), query)
}

export function wordList(query) {
  return doRequestPost(baseUrl + 'cms/customvocabulary/list' + '?time=' + (+new Date()), query)
}

export function wordAdd(query) {
  return doRequestPost(baseUrl + 'cms/customvocabulary/add' + '?time=' + (+new Date()), query)
}

export function wordDelete(query) {
  return doRequestPost(baseUrl + 'cms/customvocabulary/delete' + '?time=' + (+new Date()), query)
}

export function wordUpdate(query) {
  return doRequestPost(baseUrl + 'cms/customvocabulary/update' + '?time=' + (+new Date()), query)
}

export function dengtaWordList(query) {
  return doRequestPost(baseUrl + 'cms/dengtavocabulary/list' + '?time=' + (+new Date()), query)
}

export function dengtaWordUpdate(query) {
  return doRequestPost(baseUrl + 'cms/dengtavocabulary/update' + '?time=' + (+new Date()), query)
}

export const wordFileUploadUrl = baseUrl + 'file/upload'

export function newWordList(query) {
  return doRequestPost(baseUrl + 'event/newwords/pageList' + '?time=' + (+new Date()), query)
}

export function wordUpdateStatus(query) {
  return doRequestPost(baseUrl + 'event/newwords/updateStatus' + '?time=' + (+new Date()), query)
}

export function deleteList(query) {
  return doRequestPost(baseUrl + 'event/newwords/batchUpdate' + '?time=' + (+new Date()), query)
}

export function batchDelete(query) {
  return doRequestPost(baseUrl + 'event/newwords/batchDelete' + '?time=' + (+new Date()), query)
}

export function getSetList() {
  return doRequestGet(baseUrl + 'event/newwordsConfig/selectList' + '?time=' + (+new Date()), {})
}

export function getSetInfo() {
  return doRequestGet(baseUrl + 'event/newwordsConfig/selectInfo' + '?time=' + (+new Date()), {})
}

export function setUpdate(query) {
  return doRequestPost(baseUrl + 'event/newwordsConfig/update' + '?time=' + (+new Date()), query)
}

export function similarList(query) {
  return doRequestPost(baseUrl + 'event/eventSimilarTags/pageList' + '?time=' + (+new Date()), query)
}

export function similarDelete(query) {
  return doRequestPost(baseUrl + 'event/eventSimilarTags/batchDelete' + '?time=' + (+new Date()), query)
}

export function addInfo(query) {
  return doRequestPost(baseUrl + 'event/eventSimilarTags/addInfo' + '?time=' + (+new Date()), query)
}

export function updateInfo(query) {
  return doRequestPost(baseUrl + 'event/eventSimilarTags/updateInfo' + '?time=' + (+new Date()), query)
}
